home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1636 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.itd.umich.edu!usenet
  2. From: mschunde@umich.edu (Mark Schunder)
  3. Newsgroups: comp.lang.c
  4. Subject: Linker ERROR: BC4 --  HELP!!!
  5. Date: Tue, 16 Jan 1996 02:32:20 GMT
  6. Organization: University of Michigan
  7. Message-ID: <4denut$2k9@lastactionhero.rs.itd.umich.edu>
  8. Reply-To: mschunde@umich.edu
  9. NNTP-Posting-Host: nas1-12.dialup.umd.umich.edu
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12.  
  13. Here is the error I'm getting when i compile my project under BC4:
  14.  
  15. Linker Error: _uiKey defined in module KEYBOARD.C is duplicated in
  16. module MAIN.C
  17.  
  18. KeybTaskHandle and uiKey are suppose to be global varaibles.  uiKey is
  19. accessed by two different c files : Keyboard.c (this file updates
  20. uiKey with the ascii when the user presses a key on the keyboard) and
  21. main.c (this file monitors uiKey, when it changes, it repaints the
  22. screen according to the value of uiKey).
  23.  
  24. I do not know why I'm getting these errors.  I have the keyboard.c
  25. header file included in both KEYBOARD.c and MAIN.C (so both sets of
  26. files can see the variable and read and update the variables
  27. accordingly).  
  28.  
  29. Please HELP!
  30.  
  31. -Mark Schunder
  32.  
  33.